/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cx1.service.api;

import java.util.List;
import org.cx1.model.Weber;
import org.cx1.model.utils.ServiceResponse;

/**
 *
 * @author ECH
 */
public interface IWeberService {
    
    public ServiceResponse<List<Weber>> readAll(int offset, int limit);
    
    public ServiceResponse<Weber> read(String id);
    
    public ServiceResponse<String> create(Weber weber);    
    
    public ServiceResponse<Boolean> update(Weber weber);
    
    public ServiceResponse<Boolean> delete(String listName, String email);
                    
    public ServiceResponse<List<Weber>> readAllByListName(String listName, int offset, int limit);
    
    public ServiceResponse<Boolean> sendEmailToList(String title, String body, String listName, int offset, int limit);
    
}
